{% extends "base.html" %}

{%block title%}
Create new account
{%endblock%}

{%block content%}
{%if user.is_authenticated%}
You are already logged in.<br>
Please <a href="/accounts/logout/?next=/accounts/register/">logout</a> to register a new account!
{%else%}
<h2>Create a new account:</h2>
<form method="POST" target="">
{% csrf_token %}
<table>
{{form.as_table}}
</table>
<input type="submit" name="Register Account" value="Register Account">
</form>
{%endif%}
{%endblock%}